-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue #2278] Attempting to add another S3 bucket for API usage #2740
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's close! My second comment is the only thing blocking deploys.
Also, can you narrow the filename to the use case a bit more, eg. infra/api/service/draft_documents.tf
infra/api/service/s3.tf
Outdated
@@ -0,0 +1,83 @@ | |||
resource "aws_s3_bucket" "documents_draft" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "aws_s3_bucket" "documents_draft" { | |
resource "aws_s3_bucket" "draft_documents" { |
small opinion
infra/modules/service/main.tf
Outdated
@@ -18,6 +18,7 @@ locals { | |||
{ name : "PORT", value : tostring(var.container_port) }, | |||
{ name : "AWS_REGION", value : data.aws_region.current.name }, | |||
{ name : "S3_BUCKET_ARN", value : aws_s3_bucket.general_purpose.arn }, | |||
{ name : "DRAFT_S3_BUCKET_ARN", value : aws_s3_bucket.documents_draft.arn }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this into infra/api/service/main.tf line 143
Like so:
extra_environment_variables = merge(
local.service_config.extra_environment_variables,
{ "ENVIRONMENT" : var.environment_name },
{ "DRAFT_S3_BUCKET_ARN" : aws_s3_bucket.documents_draft.arn }
)
a533db2
to
6031041
Compare
40d7655
to
8a15f1d
Compare
workflow_dispatch: | ||
inputs: | ||
environment: | ||
description: "target environment" | ||
required: true | ||
default: "dev" | ||
type: choice | ||
options: | ||
- dev | ||
- staging | ||
- prod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 !
9db8202
to
863d31d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
Summary
Fixes #2278
Time to review: 3 mins
Changes proposed
Adding a 2nd bucket to store non-published Documents/Attachments associated with Opportunities.